package cn.kgc.crowdfundingadminspringboot01.service;

import cn.kgc.crowdfundingadminspringboot01.pojo.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author shkstart
 * @create 2020-02-19 22:04
 */
public interface AdminService {
    //根据Id查用户
    public Admin selectById(Integer id);

    //登录
    public Admin login(String loginAcct, String userPswd);

    PageInfo<Admin> queryForKeywordSearch(Integer pageNum, Integer pageSize, String keyword);

    public void batchRemove(List<Integer> adminIdList);

    public void saveAdmin(Admin admin);

    public Admin getAdminById(Integer adminId);

    public void updateAdmin(Admin admin);
}
